<%@ page language="java" import="java.util.*,java.text.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	response.setHeader("refresh", "3;url='index.jsp'");
	Cookie cookies[]=request.getCookies();
	if(cookies!=null){
		for(int i=0;i<cookies.length;i++){
			Cookie c=cookies[i];
			if(c.getName().equals("name")){
				Date date=new Date();
				int time=(int)(date.getTime()/1000/3600/24/365);
			c.setMaxAge(time-1200000);
			}
		}
	}
	
	%>
</body>
</html>